<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<html>
	<head>
		<title>公司快递单管理</title>
	</head>

	<body>
		<c:if test="${not empty message}">
			<div id="message" class="alert alert-success">
				<button data-dismiss="alert" class="close">
					×
				</button>
				${message}
			</div>
		</c:if>
		<div class="row">
			<div class="span4 offset7">
				<form class="form-search" action="#">
					<label>
						角色名称：
					</label>
					<input type="text" name="search_LIKE_rolename" class="input-medium"
						value="${param.search_LIKE_rolename}">
					<button type="submit" class="btn">
						搜索
					</button>
				</form>
			</div>
			<tags:sort />
		</div>
		<table id="contentTable"
			class="table table-striped table-bordered table-condensed">
			<thead>
				<tr>
					<th>
						公司名称
					</th>
					<th>
						快递单名称
					</th>
					<th>
						是否默认
					</th>

					<th>
						操作
					</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${companyExpressStyles}" var="companyExpressStyle">
					<tr>
						<td>
							${companyExpressStyle.companyName}

						</td>
						<td>
							${companyExpressStyle.expressStyleName}
						</td>
						<td>
							<c:if test="${companyExpressStyle.expressStyleDefault eq 1}">是</c:if>
							<c:if test="${companyExpressStyle.expressStyleDefault eq 0}">否</c:if>
						</td>

						<td>
							<a href="${ctx}/role/delete/${role.id}">删除</a>|
							<a href="${ctx}/v2/logistics/updataExpressStyle/${companyExpressStyle.expressStyleId}">修改</a>|
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</body>
</html>
